<!--  -->
<template>
  <div class="titleLine">
    <div class="titleLabel">{{ titleLabel }}</div>
    <div class="backBtn" @click="routeBack">返回</div>
  </div>
</template>

<script>
export default {
  props: {
    titleLabel: {
      type: String,
      default: "",
    },
  },
  data() {
    return {};
  },
  methods: {
    // 返回上一页
    routeBack() {
      this.$router.go(-1);
    },
  },
};
</script>
<style  scoped>
.titleLine {
  height: 56px;
  background-color: #f1f5f9;
  margin-top: 4px;
  padding-right: 24px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}
.titleLabel {
  font-size: 14px;
  font-stretch: normal;
  letter-spacing: 2px;
  color: #868d95;
  margin-left: 56px;
}
.backBtn {
  width: 64px;
  height: 32px;
  font-size: 14px;
  letter-spacing: 4px;
  color: #ffffff;
  background-color: #3a94fa;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>